#!/bin/bash

for i in $( ls *.roi );
do
  roifile=$i
  dsafile=$( echo $roifile | sed -e "s/roi/dsa/" )
  txtfile=$( echo $dsafile | sed -e "s/dsa/txt/" )
  vmfile=$( echo $dsafile | sed -e "s/dsa/vm/" )
  echo processing: $dsafile
  ./dmetry ./$dsafile ./$roifile ./$txtfile ./$vmfile
done

